const qs = require("querystring")
export function navigateTo(url: any, params: any) {
  if (params) {
    let value = Object.values(params)
  }
  this.props.history.push({
    pathname: url,
    query: {
      ...params
    }
  })
}
export function redirectTo(url: any, params: any) {
  this.props.history.replace({
    pathname: url,
    query: {
      ...params
    }
  })
}

export function navigateBack() {
  this.props.history.goBack()
}

export function reLaunch() {
  // window.open('')
}
